﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using YArchitech.LIB;

namespace YArchitech.HVAC
{
	public partial class FormPYSJWrong : System.Windows.Forms.Form
	{
		public FormPYSJWrong(string ce)
		{
			this.InitializeComponent();
			//base.Icon = Resource.YArchitechIcon;
			this.danshuang = ce;
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.FormBorderStyle = FormBorderStyle.FixedSingle;
		}

		private Image getImage(string me)
		{
			return Image.FromFile(Path.Combine(Product.ResLocation, me + ".png"));
		}

		private void FormPYSJWrong_Load(object sender, EventArgs e)
		{
			base.CenterToScreen();
			if (this.danshuang == "shuangce")
			{
				this.pictureBox1.Image = this.getImage("升降偏移错误提示");
				return;
			}
			this.pictureBox1.Image = this.getImage("单侧升降错误");
		}

		private void buttonOK_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.OK;
			base.Close();
		}

		private void buttonESC_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.Cancel;
			base.Close();
		}

		private string danshuang = "shuangce";
	}
}
